main(n,k,r){for(;~scanf("%d%d",&n,&k);printf("%d\n",r))for(r=1;n&&(k-1);n=n<k?n:k,r*=k%n?1:n,k/=k%n?1:n,n--);}
